import { BaseMessage } from "../../../../../extensions/phoenix-plugin-client/assets/core/net/message/message";
import { OpcodeApp } from "../../define/opcode.define";
import proto from "../../protoc/ts/proto_app.js";

export class S2CMessageUpdateResources extends BaseMessage {
    constructor(){
        super(OpcodeApp.Opcode_SC_UPDATE_RESOURCES);
    }

    Decode(data: Uint8Array): void {
        if (!data) {
            return;
        }
        this.messageEntity = proto.s2c_UpdateResources.decode(data);
    }
}